package com.example.demo.dto;

public class PaginationDto {
    private long current = 1;
    private Integer size = 10;

    public long getCurrent() {
        return current;
    }

    public void setCurrent(long current) {
        this.current = current;
    }

    public Integer getSize() {
        if(this.size <= 0) {
            return 10;
        }
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }
}
